# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.VectorTile.V1.Model.Vertex3DList do
  @moduledoc """
  3D vertex list used for modeled volumes. Each entry represents an offset from the previous one in local tile coordinates. The first coordinate is offset from (0, 0, 0).

  ## Attributes

  *   `xOffsets` (*type:* `list(integer())`, *default:* `nil`) - List of x-offsets in local tile coordinates.
  *   `yOffsets` (*type:* `list(integer())`, *default:* `nil`) - List of y-offsets in local tile coordinates.
  *   `zOffsets` (*type:* `list(integer())`, *default:* `nil`) - List of z-offsets in local tile coordinates.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :xOffsets => list(integer()) | nil,
          :yOffsets => list(integer()) | nil,
          :zOffsets => list(integer()) | nil
        }

  field(:xOffsets, type: :list)
  field(:yOffsets, type: :list)
  field(:zOffsets, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.VectorTile.V1.Model.Vertex3DList do
  def decode(value, options) do
    GoogleApi.VectorTile.V1.Model.Vertex3DList.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.VectorTile.V1.Model.Vertex3DList do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
